package com.example.intermingle.mapper;
import java.util.List;
import com.example.intermingle.vo.UserRole;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity com.example.intermingle.dao.UserRole
 */
public interface UserRoleMapper {

    //添加用户权限信息
    int insertAll(UserRole userRole);
    //根据用户id和角色id来查询用户权限
    UserRole selectOneByUserIdAndRoleId(@Param("userId") Integer userId, @Param("roleId") Integer roleId);

    //根据用户角色id来删除角色权限
    int delByUserRoleId(@Param("userRoleId") Integer userRoleId);
}




